# 删除原来的代码
rm -r git/
# 拉取新的代码
git clone https://gitee.com/hu-chenhui/hustoj_for_verilog.git git

# 备份原来的到当前backup目录带时间戳
time=$(date "+%Y-%m-%d%H:%M:%S")
backup_dir="backup/${time}"
echo $backup_dir
mkdir -p $backup_dir

cp -a /home/judge/src/web $backup_dir
# 把web代码覆盖，去除db_info.inc.php
rm git/trunk/web/include/db_info.inc.php
cp -a git/trunk/web /home/judge/src
